// import {saveAS} from "file-saver";
// import {BasicHtml} from "../components/data/basicHTML";
import { textHTML,textStyle} from "../components/data/compoentsHTML";
let bodyStr="";
let styleStr="";
function getBodyStr(views){
    bodyStr="";
    views.forEach(element => {
        if(element.component==="TextComponent"){
            bodyStr=textHTML(element)+bodyStr;
        }
    });
    return bodyStr;
}

function getStyleStr(views){
    styleStr="";
    views.forEach(element => {
        if(element.component==="TextComponent"){
            styleStr=textStyle(element)+styleStr;
        }
    });
    console.log(styleStr);
    return styleStr;
}

export default {
    getBodyStr,
    getStyleStr
}